﻿#region 命名空间

using System.Net;
using System.Web;
using WinnerCMS.BLL.GatherEngine;
using WinnerCMS.Common;

#endregion

namespace WinnerCMS.WebUI
{
    /// <summary>
    ///     Summary description for Transfer
    /// </summary>
    public class Transfer : IHttpHandler
    {
        public void ProcessRequest(HttpContext context)
        {
            //string resUrl = context.Request.QueryString["URL"];

            //NetHelper helper = new NetHelper();
            //RemoteRes info = helper.GetRemoteResource(resUrl);
            //if (info.StatusCode == HttpStatusCode.OK)
            //{
            //    context.Response.ClearContent();

            //    context.Response.BinaryWrite(info.Bytes);

            //}
            //else
            //{
            //    context.Response.BinaryWrite(new byte[]{});
            //}
            //context.Response.ContentType = info.ContentType;
            //context.ApplicationInstance.CompleteRequest();

            //context.Response.Write("Handler2");
        }

        public bool IsReusable
        {
            get { return false; }
        }
    }
}